//
//  NearbyViewController.h
//  安好
//
//  Created by lianchuang on 14-11-10.
//  Copyright (c) 2014年 lianchuangbrother. All rights reserved.
//

#import "BaseViewController.h"
#import <CoreLocation/CoreLocation.h>
#import <MAMapKit/MAMapKit.h>
//#import <MapKit/MapKit.h>
#import <AMapSearchKit/AMapSearchAPI.h>
@interface NearbyViewController : BaseViewController<UITableViewDataSource,UITableViewDelegate,CLLocationManagerDelegate,AMapSearchDelegate,MAMapViewDelegate>
@property (strong, nonatomic) IBOutlet UITableView *nearPersonTableview;

@property (strong, nonatomic) IBOutlet UITableView *nearHospital;
@property (strong, nonatomic) IBOutlet UIButton *perseonSender;
@property (strong, nonatomic) IBOutlet UIButton *hospitalSender;
@property (strong, nonatomic) IBOutlet UIButton *storeSender;
@property (strong, nonatomic) IBOutlet UITableView *nearStore;
- (IBAction)nearPersonClick:(id)sender;
- (IBAction)nearHospitalClick:(id)sender;
- (IBAction)nearStoreClick:(id)sender;
@property (strong, nonatomic) IBOutlet UIImageView *personLine;
@property (strong, nonatomic) IBOutlet UIImageView *hospLine;
@property (strong, nonatomic) IBOutlet UIImageView *storeLine;


@property (strong, nonatomic) NSMutableArray *personNearbyArray;
@property (strong, nonatomic) NSMutableArray *hospitalNearbyArray;
@property (strong, nonatomic) NSMutableArray *storeNearbyArray;
@property (nonatomic, strong) CLLocationManager *locationger;
@property (nonatomic, strong) NSString *latitude;
@property (nonatomic, strong) NSString *longitude;
@property (nonatomic, strong) MAMapView *mapview;
@property (nonatomic, assign) NSInteger hosPage;
@property (nonatomic, assign) NSInteger storePage;
@property (nonatomic, strong) AMapSearchAPI *search;
@end



